﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class Begin : MonoBehaviour
{

    public static float BG;
    public static float YinXiao;


    public static int ThisGuan;

    public GameObject One;
    public GameObject Two;

    // Start is called before the first frame update
    void Start()
    {
        Time.timeScale = 1;

        SetView(1);
    }

    // Update is called once per frame
    void Update()
    {


    }
    public void Load1(int index)
    {
        GameManager.Instance.Level = index;
        SceneManager.LoadScene(1);

    }


    public void TuiChu()
    {
        Application.Quit();
    }

    public void SetView(int index)
    {
        One.SetActive(index == 1);
        Two.SetActive(index == 2);
    }

}
